package com.woniu.smallmedical.mapper;

import com.woniu.smallmedical.entity.Basicmessage;


import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface BasicmessageMapper {



    //分页查所有药
    List<Basicmessage> selectAll(@Param("pageIndex") Integer pageIndex,
                                 @Param("pageSize")  Integer pageSize);
    //查询所有条数
    int selectcount();
    //增加药品
    void insertmessage(Integer numbers,String nickname,String perscription,String factory,String medicineclassify,String medicinespecs,String medicineformulations,String unit,String basicunit,Double purchase,Double retail,String usages,Integer Dosage,String frequency,String illustrate,String remark,Integer state);
    //通过Id查信息
    Basicmessage selectById(int bmid);
    //查询编号
    List<Basicmessage> SelctNumber(String nickname);

        //修改状态
    void update(Integer bmid);

    List<Basicmessage> queryByName(@Param("name") String name);



}
